package com.chixing.day09_innerclass;

public enum DeliverOrderStatus {
    WAIT_DISPATCHER(0,"待调度"),
    ORDER_TOKEN(20,"已接单"),
    PICKED_UP(30,"已取货"),
    HAS_DELIVERED(50,"已送达"),
    HAS_CANCLED(90,"已取消");

    private int code;
    private String msg;
    private DeliverOrderStatus(int code,String msg){
        this.code = code;
        this.msg = msg;
    }

    @Override
    public String toString() {
        return "DeliverOrderStatus{" +
                "code=" + code +
                ", msg='" + msg + '\'' +
                '}';
    }
}
